
	
<?php
	include_once("db/dataprovider.php");
	
	$sql = "SELECT ma,ten,gia,hinh FROM sanpham ORDER BY Rand() LIMIT 6";
		
	$result = DataProvider::ExecuteQuery($sql);
		
	while($row = mysql_fetch_array($result, MYSQL_ASSOC))
	{
			
?>
		<div class="item">
			<img src="<?php echo($row['hinh']);?>" alt="" width="202" height="173" onclick="loaddetail(<?php echo($row['ma']);?>)" /><br />
			<span>&nbsp;</span>
			
			<a href="#" class="buy">Mua</a>
		</div>
<?php
			
		}
		
?>
			
			
		
	
	
